package com.sky.service;

import com.sky.annotation.AutoFill;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.enumeration.OperationType;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    public void saveWithFlavor(DishDTO dishDTO);

    public PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);
//菜品删除
    void deleteBach(List<Long> ids);
//根据菜品ID查询菜品和口味
    DishVO getDishByIdWithFlavor(Long id);



    //修改菜品菜单
    @AutoFill(value = OperationType.UPDATE)
    void updateWithFlavor(DishDTO dishDTO);

    List<Dish> getCategoryById(Long categoryId);

    List<DishVO> listWithFlavor(Dish dish);
}
